; Compute the list of symbols for 'eshell-eval-using-options' once
authorJim Porter <jporterbugs@gmail.com>
Tue, 13 Feb 2024 20:27:38 +0000 (12:27 -0800)
committerJim Porter <jporterbugs@gmail.com>
Tue, 13 Feb 2024 20:27:38 +0000 (12:27 -0800)
commit160165e8a97cfa3f3ffd803be373a3b34ed87597
tree714a72484f135fc651f709ff62efba70c42cd3cb
parent371ccf09fea26892a2fada028d27fb4b596636df
; Compute the list of symbols for 'eshell-eval-using-options' once

* lisp/eshell/esh-opt.el (eshell--get-option-symbols): New function...
(eshell-eval-using-options): ... use it.
(eshell--do-opts, eshell--process-args): Take OPTION-SYMS.

* test/lisp/eshell/esh-opt-tests.el (esh-opt-test/process-args):
(esh-opt-test/process-args-parse-leading-options-only):
(esh-opt-test/process-args-external): Pass OPTION-SYMS in.
lisp/eshell/esh-opt.el
test/lisp/eshell/esh-opt-tests.el